import request from '../lib/request.js'

// 获取账单类型
const getAccountType = ( data, type, header) => {
  return request('/app/getType', data, 'post')
}
// 新增账单类型
const addAccountType = ( data, type, header) => {
  return request('/app/addType', data, 'post')
}
// 新增账单
const addAccount = ( data, type, header) => {
  return request('/app/addAccount', data, 'post')
}
// 查询账单
const getAccount = ( data, type, header) => {
  return request('/app/getAccount', data, 'post')
}

export { getAccountType, addAccountType, addAccount, getAccount}